package org.vectrics.user;


import org.vectrics.common.synch.SynchHolder;


public class PersonSynch extends SynchHolder {
	private UserSummary userSummary = null;
	private Person person = null;
	private Long id = null;

	
	public PersonSynch() {
		super();
	}
	

	public Long getId() {
		
		if (userSummary != null) {
			this.id = userSummary.getId();
		}
		else if (person != null) {
			this.id = person.getId();
		}
		return(this.id);
	}
	
	public void setId(Long id) {
		this.id = id;
	}


	/**
	 * @return Returns the userSummary.
	 */
	public UserSummary getUserSummary() {
		return userSummary;
	}

	/**
	 * @param userSummary The userSummary to set.
	 */
	public void setUserSummary(UserSummary userSummary) {
		this.userSummary = userSummary;
	}

	/**
	 * @return Returns the person.
	 */
	public Person getPerson() {
		return person;
	}
	/**
	 * @param person The person to set.
	 */
	public void setPerson(Person person) {
		this.person = person;
	}
}
